package cn.arifun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 漆原
 * @Description: 用户表实体类
 * @DateTime: 2024/10/3 13:50
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class SysUser {

    /**
     * IdType: AUTO 自增，但需要保证字段设置了自增
     * ASSIGN_ID  默认，雪花算法
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String password;

    private boolean enable;
}
